<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>EasyTalk Administrator's Control Panel</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta content="H.Joeson" name="Copyright" />
		<link rel="stylesheet" href="../../public/css/style.css" type="text/css" media="all" />
		<script src="../../public/js/jquery.js" type="text/javascript"></script>
		<script src="../../public/js/admin.js" type="text/javascript"></script>
	</head>
	<body>
		<div id="bodymain">
			<div class="title"><{$position}></div>
			<div class="content">
				<form action='<{:SITE_URL}>/admin.php?s=/Theme/upload' method="POST" enctype="multipart/form-data">
					<h3>上传模板</h3>
					<table class="table" style="margin:5px 0 20px 0">
						<tr>
							<td width="150px">选择ZIP压缩文件</td>
							<td><input type="file" name="upload" class="txt_input"></td>
						</tr>
						<tr>
							<td>&nbsp;</td>
							<td><input type="submit" class="button1" value="提交上传"></td>
						</tr>
					</table>
				</form>
				<h3>编辑模版</h3>
				<form action='<{:SITE_URL}>/admin.php?s=/Theme/edit' method="POST">
					<table class="table" style="margin:5px 0 20px 0">
						<tr>
							<td width="12%">背景色</td>
							<td width="12%">文本色</td>
							<td width="12%">链接色</td>
							<td width="12%">侧栏色</td>
							<td width="12%">侧边框色</td>
							<td width="13%">背景图位置</td>
							<td width="13%">有无背景图</td>
							<td width="14%">&nbsp;</td>
						</tr>
						<tr>   
							<td><input type="text" name="edit[theme_bgcolor]" style="width:75px" value="#333"></td>
							<td><input type="text" name="edit[theme_text]" style="width:75px" value="#333"></td>
							<td><input type="text" name="edit[theme_link]" style="width:75px" value="#333"></td>
							<td><input type="text" name="edit[theme_sidebar]" style="width:75px" value="#333"></td>
							<td><input type="text" name="edit[theme_sidebox]" style="width:75px" value="#333"></td>
							<td>
								<select name="edit[theme_sidebox]" style="width:75px">
									<option value="repeat" >平铺</option>
									<option value="center" >居中</option>
									<option value="left" >左对齐</option>
								</select>
							</td>
							<td>
								<select name="edit[theme_upload]" style="width:75px">
									<option value="1" >有</option>
									<option value="0" >无</option>
								</select>
							</td> 
							<td>
								<input type="hidden" name="id" value="editid">
								<input type="submit" value="编辑">
								<input type="button" onclick="window.location.href='<{:SITE_URL}>/admin.php?s=/Theme'" value="取消">
							</td>
						</tr>
					</table>
				</form>
				<h3>模版列表</h3>
				<div style="padding:10px 0 15px 15px">
				<div class="themebox">
					<p>
						<img src="<{:__PUBLIC__}>/attachments/usertemplates/<{$val[ut_id]}>/thumb_themebg.jpg" class="themeimg">
						<div style="background:<{$val[theme_bgcolor]}>" class="themeimg"><br/>无背景</div>
					</p>
					<p>
						<a href="<{:SITE_URL}>/admin.php?s=/Theme/option/op/open/id/<{$val[ut_id]}>">开</a>
						| <a href="<{:SITE_URL}>/admin.php?s=/Theme/option/op/close/id/<{$val[ut_id]}>">关</a>
						| <a href="##" onclick="jsop('<{:SITE_URL}>/admin.php?s=/Theme/option/op/del/id/<{$val[ut_id]}>','确认删除此模板？')">删</a> 
						| <a href="<{:SITE_URL}>/admin.php?s=/Theme/option/op/edit/id/<{$val[ut_id]}>">编</a>
					</p>
				</div>
				</div>
				<div class="clearline"></div>
				<div class="page"><{$page}></div>
			</div>
		</div>
	</body>
</html>